﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/static/include/top.jsp"%>
<p>&nbsp;</p>
<form method="post" name="saveForm" action="${baseURL}/doLogin" onsubmit="return checkInput()">
<table width="400" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
  <tr align="center">
  		<td colspan="2" class="titleBgColor"><b>管理员登陆</b></td>
	</tr>
  <tr>
    <td align="right"><b>用户名：</b></td>
    <td><input name="username" type="text" value="admin" class="myInput" id="userName" size="16" maxlength="16"/></td>
  </tr>
  <tr>
    <td align="right"><b>密码：</b></td>
    <td><input name="pw" type="password" value="1" class="myInput" id="password" size="16" maxlength="16"/></td>
  </tr>
  <tr align="center">
      <td colspan="2"><input name="Submit" type="submit" class="myButton" value="登录系统"/>
        <input name="Submit2" type="reset" class="myButton" value="重新填写"/>
        <br></br><font color="red">${msg}</font></td>
  </tr>
</table>
</form>

<script>
document.getElementById("username").focus();
function checkInput(){
	username = document.getElementById("username");
	if(username.value==""){
		alert("请输入用户名。");
		username.focus();
		return false;
	}
	password = document.getElementById("password");
	if(password.value==""){
		alert("请输入密码。");
		password.focus();
		return false;
	}
	return true;
}
</script>

<%@ include file="/static/include/bottom.jsp"%>